﻿@model IEnumerable<NhaSolutions.ClientWeb.Models.TabPageModel>

@{
    ViewBag.Title = "Tab Page";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            TabParentID
        </th>
        <th>
            TabName
        </th>
        <th>
            TabTitle
        </th>
        <th>
            TabDescription
        </th>
        <th>
            TabKeyword
        </th>
        <th>
            TabActive
        </th>
        <th>
            TabPosition
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TabParentID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TabName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TabTitle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TabDescription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TabKeyword)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TabActive)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TabPosition)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.TabID }) |
            @Html.ActionLink("Details", "Details", new { id=item.TabID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.TabID })
        </td>
    </tr>
}

</table>
